<style type="text/css">
    table {
        max-width: 750px;
    }
</style>
<div style="min-height: 400px;">
    <table id="listartikel" style="margin-top: 1em;">
        <thead>
            <tr>
                <th>Waktu Posting</th>
                <th>Judul Artikel</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if (count($artikelList) > 0) {
                foreach ($artikelList as $artikel) {
                    echo "<tr>";
                    echo "<td style='text-align: right;'>" . $artikel->content_id->posted_date . "<br />" . $artikel->content_id->posted_time . "</td>";
                    echo "<td>" . "<a href='" . site_url("artikel/kr/" . $artikel->id) . "'>" . $artikel->content_id->title . "</a>" . "</td>";
                    echo "<td>" . ($artikel->is_approved ? "Approved" : "Pending Approval") . "</td>";
                    echo "</tr>";
                }
            } else {
                echo "<tr>";
                echo "<td style='text-align: center;' colspan='3'>" . "(tidak ada history entry artikel)" . "</td>";
                echo "</tr>";
            }
            ?>
        </tbody>
    </table>
</div>